package com.kust.smarthome.web.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author iAuzre
 * @since 2021-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("watch")
@ApiModel("只能穿戴设备")
public class Watch implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    @ApiModelProperty(value = "设备id", required = true)
    private Integer id;

    @TableField("user_id")
    @ApiModelProperty(value = "用户id", required = true)
    private Integer userId;

    @TableField("person_id")
    @ApiModelProperty(value = "穿戴者id(来自于详细信息表)", required = true)
    private Integer personId;

    @TableField("content")
    @ApiModelProperty(value = "描述", required = true)
    private String content;

    @TableField("created")
    @ApiModelProperty(value = "穿戴时间", required = true)
    private LocalDateTime created;

}
